<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">

     

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">出发地</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="depart_code">
                    <option value=''>-- 请选择 --</option>
                    {foreach $warehouses as $k=>$v}
                    {if isset($get.depart_code) and $get.depart_code eq $k.""}
                    <option selected value="{$v.ware_code}">{$v.ware_name}</option>
                    {else}
                    <option value="{$v.ware_code}">{$v.ware_name}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">目的地</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="receiver_code">
                    <option value=''>-- 请选择 --</option>
                    {foreach $warehouses as $k=>$v}
                    {if isset($get.receiver_code) and $get.receiver_code eq $k.""}
                    <option selected value="{$v.ware_code}">{$v.ware_name}</option>
                    {else}
                    <option value="{$v.ware_code}">{$v.ware_name}</option>
                    {/if}{/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="created_at" value="{$get.created_at|default=''}" placeholder="请选择创建时间" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>